package chat.user;

import java.io.Serializable;
import java.net.Socket;

public abstract class Request implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	User abs_user;
	String group;
	Socket socket;
	private String from_user;
	
	public void setUser(User u){
		
		this.abs_user = u;
	}
	
	public User getUser(){
		
		return this.abs_user;
	}
	
	void setGroup (String g){
		
		this.group = g;
	}
	
	public String getGroup (){
		
		return this.group;
	}
	
	public void setSocket (Socket s){
		
		this.socket = s;
		
	}
	
	public void setFromUser (String fromUser){
		
		this.from_user = fromUser;
		
	}
	
	public String getFromUser (){
		
		return this.from_user;
		
	}
	
	public void removeSocket (){
		
		this.socket = null;
		
	}
	
	public Socket getSocket(){
		
		return this.socket;
	}
	
	
}
